// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DisposableDependencyObjectWrapperOfT.cs" company="">
//   
// </copyright>
// <summary>
//   Defines the DisposableDependencyObjectWrapper type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Skymate.Engines
{
    using Skymate.Engines.DependencyManagement;

    internal class DisposableDependencyObjectWrapper : DisposableDependencyObjectWrapper<object>, IDisposableDependencyObjectWrapper
    {
        public DisposableDependencyObjectWrapper(IIocResolver iocResolver, object obj)
            : base(iocResolver, obj)
        {

        }
    }

    internal class DisposableDependencyObjectWrapper<T> : IDisposableDependencyObjectWrapper<T>
    {
        private readonly IIocResolver _iocResolver;

        public T Object { get; private set; }

        public DisposableDependencyObjectWrapper(IIocResolver iocResolver, T obj)
        {
            this._iocResolver = iocResolver;
            this.Object = obj;
        }

        public void Dispose()
        {
            // _iocResolver.ContainerManager. .Release(Object);
        }
    }
}